package book;

public class SuspendMonopolize {

	static class MyThread extends Thread{
		
		private long i = 0;
		
		public void run(){
			
			while(true){
				
				i++;
				System.out.println(i);
			}
		}
	}
	
	public static void main(String[] args) throws InterruptedException {
		
		MyThread t = new MyThread();
		t.start();
		t.suspend();
		System.out.println("main end!");
	}
}
